/**
 * 
 */
package org.hilo.boot.core.code;

/**
 * 
 * @author zollty
 * @since 2018年6月19日
 */
public class ServiceInfo extends EntityInfo {
    
    private String methodName;
    
    /**
     * @return the serviceName
     */
    public String getServiceName() {
        return super.getClassName();
    }

    /**
     * @param serviceName the serviceName to set
     */
    public void setServiceName(String serviceName) {
        super.setClassName(serviceName);
    }

    /**
     * @return the methodName
     */
    public String getMethodName() {
        return methodName;
    }

    /**
     * @param methodName the methodName to set
     */
    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }
    
    public String getReqObjectName() {
        return methodName.substring(0, 1).toUpperCase() + methodName.substring(1) + "Req";
    }
    
    public String getResObjectName() {
        return methodName.substring(0, 1).toUpperCase() + methodName.substring(1) + "Res";
    }

}
